package com.cq.jackmar.rxdemo.http.base;

/**
 * 返回数据的基类
 * Created by JackMar on 2017/2/28.
 * 邮箱：1261404794@qq.com
 */

public class BaseResult<T> {


    /**
     * State : true
     * Code : 0
     * Msg : 验证码发送成功!
     * Data : 6227
     */

    private boolean State;
    private int Code;
    private String Msg;
    private T Data;

    public boolean isState() {
        return State;
    }

    public void setState(boolean State) {
        this.State = State;
    }

    public int getCode() {
        return Code;
    }

    public void setCode(int Code) {
        this.Code = Code;
    }

    public String getMsg() {
        return Msg;
    }

    public void setMsg(String Msg) {
        this.Msg = Msg;
    }

    public T getData() {
        return Data;
    }

    public void setData(T Data) {
        this.Data = Data;
    }

    @Override
    public String toString() {
        return "BaseResult{" +
                "State=" + State +
                ", Code=" + Code +
                ", Msg='" + Msg + '\'' +
                ", Data=" + Data +
                '}';
    }
}
